<template>
  <div>
    <h1>电影名在4-6个字</h1>
    <ul>
      <li v-for="item in myMovieList" :key="item.tvid">{{item.albumName}}</li>
    </ul>
    <h1>电影名长度自己决定</h1>
      <li v-for="item in yourMovieList" :key="item.tvid">{{item.albumName}}</li>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
name:'Movie',
computed:{
  // 普通用法
  // myMovieList(){
  //   return this.$store.getters.myMovieList
  // },
  ...mapGetters(['myMovieList']),
  //可以传参的getters
  yourMovieList(){
    return this.$store.getters.yourMovieList({m:3,n:7})
  }
}
}
</script>

<style>

</style>